Skip to content

Comments

Disable SSL validation for local testing for updated PHP versions#12

Closed
crobibero wants to merge 1 commit intomasterfrom
ssl-disable
Closed

Disable SSL validation for local testing for updated PHP versions#12
crobibero wants to merge 1 commit intomasterfrom
ssl-disable

Conversation

@crobibero
Copy link

Found when testing ownerrez/orez-wp#20

@crobibero crobibero linked an issue Feb 13, 2026 that may be closed by this pull request
7 tasks
Comment on lines +95 to +97
if (strpos($this->baseUri, '.dev.') !== false)
$options['ssl'] = ['verify_peer' => false, 'verify_peer_name' => false];

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too magic for a public api library.

@eesquibel
Copy link
Contributor

There's other ways around this issue (installing your self-signed into the OS cert store), and this is too "magic" for a public library. Would approve if was a configuration option people could toggle.

@eesquibel eesquibel closed this Feb 23, 2026
@eesquibel eesquibel deleted the ssl-disable branch February 23, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test Plugin with latest WordPress versions

2 participants